/*
 *
 *  * | Licensed 未经许可不能去掉「OPENIITA」相关版权
 *  * +----------------------------------------------------------------------
 *  * | Author: xw2sy@163.com
 *  * +----------------------------------------------------------------------
 *
 *  Copyright [2024] [OPENIITA]
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 * /
 */

package cc.iotkit.data.model;

import cc.iotkit.model.miniAdmin.DeviceDistributor;
import cc.iotkit.model.miniAdmin.GoodsClassify;
import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * 岗位表 sys_post
 *
 * @author Lion Li
 */

@Data
@EqualsAndHashCode(callSuper = true)
@Entity
@Table(name = "device_distributor_binding")
@AutoMapper(target = DeviceDistributor.class)
public class TbDeviceDistributor extends BaseEntity {

    /**
     * 岗位序号
     */
    @Id
    @GeneratedValue(generator = "SnowflakeIdGenerator")
    @GenericGenerator(name = "SnowflakeIdGenerator", strategy = "cc.iotkit.data.config.id.SnowflakeIdGenerator")
    @ApiModelProperty(value = "ID")
    private Long id;

    private String deviceId;
    private Long distributorId;
    private Integer status;


    //@ApiModelProperty(value = "定位")
    private String location;

    // @ApiModelProperty(value = "地图文字")
    private String mapDesc;

    // @ApiModelProperty(value = "设备名称")
    private String deviceName;

    //@ApiModelProperty(value = "设备分组ID")
    private String deviceGroupId;


    //@ApiModelProperty(value = "地址")
    private String addr;


    // @ApiModelProperty(value = "设备状态")
    private Integer state;

    //@ApiModelProperty(value = "设备型号")
    private String model;

    private Integer bindStatus;

    //@ApiModelProperty(value = "产品ID")
    private Long productId;
    /**
     */
    //@ApiModelProperty(value = "产地ID")
    private Long areaId;

    // @ApiModelProperty(value = "机器类型， 机柜")
    private String machineType;

    //@ApiModelProperty(value = "收件人")
    private String receiver;

    // @ApiModelProperty(value = "收件人电话")
    private String receiverPhone;

    // @ApiModelProperty(value = "收件人地址")
    private String receiverAddr;

    /**
     *
     */
    //@ApiModelProperty(value = "押金")
    private BigDecimal deposit;

    // @ApiModelProperty(value = "运营状态,1 -是，0-否")
    private int operationStatus;

    // @ApiModelProperty(value = "运营状态,1 -是，0-否")
    private int isReShip;

    //@ApiModelProperty(value = "自动退款,1 -是，0-否")
    private int isAutoRefund;

    // @ApiModelProperty(value = "安卓屏,1 -是，0-否")
    private int isAndroidScreen;

    //@ApiModelProperty(value = "主板风格：oldStyle1，oldStyle2，new")
    private String  boardStyle;

    //@ApiModelProperty(value = "运营应用：h5， miniApp（小程序）")
    private String  operateApp;


    //@ApiModelProperty(value = "是否开启购物车：1-是，0-否")
    private int  enableShopCart;
}